/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.staf.NetworkReportGenerator;

/**
 *
 * @author aezhov
 */
public class SysUtil {
    public static void usedMemory(String comment) {
        Runtime runtime = Runtime.getRuntime();
        long freeMem = runtime.freeMemory();
        long totalMem = runtime.totalMemory();
        long used = totalMem - freeMem;
        System.out.println("++++++ USED MEMORY " + comment + " == " + used +
                " ; TotalMem == " + totalMem);
    }
}
